package com.gooluke.mall.common.enums;

/**
 * @author gooluke
 */
public enum BaseErrorStatus {

    //系统错误码
    SUCCESS("0","success"),
    SYSTEM_ERROR("99990001","系统异常"),
    SYSTEM_BUSY("99990002","系统繁忙，请稍后重试"),
    TIMEOUT_EXCEPTION("99990003","系统超时"),
    WRONG_PARAM("99990004","参数错误"),
    UNAUTHORIZED_ERROR("99990005","请求不合法或登录态已失效"),
    DB_ERROR("99990006","数据库异常"),
    ;

    private final String errCode;
    private final String errMsg;

    BaseErrorStatus(String errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public String getErrCode() {
        return errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

}
